.ai-chat-layout {
  height: 100vh;
  background: #fff;
}

.chat-sider {
  background: #f5f5f5;
  border-right: 1px solid #e8e8e8;
}

.sider-header {
  padding: 16px;
  border-bottom: 1px solid #e8e8e8;
}

.chat-menu {
  border: none;
  background: transparent;
}

.chat-menu .ant-menu-item {
  margin: 4px 8px;
  border-radius: 6px;
  height: auto;
  padding: 8px 12px;
}

.chat-menu .ant-menu-item-selected {
  background: #e6f7ff;
  color: #1890ff;
}

.chat-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.chat-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delete-btn {
  opacity: 0;
  transition: opacity 0.2s;
}

.chat-menu-item:hover .delete-btn {
  opacity: 1;
}

.chat-content {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background-color: #f5f5f5;
}

.message {
  display: flex;
  margin-bottom: 20px;
  align-items: flex-start;
}

.user-message {
  flex-direction: row-reverse;
}

.assistant-message {
  flex-direction: row;
}

.message-avatar {
  margin-right: 12px;
  flex-shrink: 0;
}

.user-message .message-avatar {
  margin-right: 0;
  margin-left: 12px;
}

.message-content {
  flex: 1;
  max-width: 80%;
}

.user-message .message-content {
  text-align: right;
}

.message-text {
  background: white;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  line-height: 1.5;
  word-wrap: break-word;
  display: inline-block;
}

.user-message .message-text {
  background: #1890ff;
  color: white;
}

.assistant-message .message-text {
  background: white;
  color: #333;
}

.message-time {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
  text-align: right;
}

.user-message .message-time {
  text-align: right;
}

.assistant-message .message-time {
  text-align: left;
}

.input-container {
  padding: 20px;
  background: white;
  border-top: 1px solid #e8e8e8;
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.input-container .ant-input {
  flex: 1;
  border-radius: 8px;
  resize: none;
}

.send-button {
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
}

/* 滚动条样式 */
.messages-container::-webkit-scrollbar {
  width: 6px;
}

.messages-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.messages-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.messages-container::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
} 